package common

import "time"

// sso
const (
	UserProfile   = "user"
	AuthTokenName = "auth_token"
)

// 错误码
const (
	BizErrCode              = 50012 // 业务通用错误
	EvilViewErrCode         = 50013 // 非法查看不属于自己的资源
	LoginFailErrCode        = 20010 // 用户未登陆
	WxLoginFailErrCode      = 20018 // wx_code码错误-登陆失败
	HasNotRegisteredErrCode = 20019 // wx_code码错误-用户未注册
	ReRegisteredErrCode     = 20020 // wx_code码错误-用户重复注册
)

//
const (
	RandomHeadUrlPrefix     = "default_head_url_"
	RandomNicknamePrefix    = "lucky_name_"
	RandomLuckyNumberPrefix = "lucky_number_"
	RandomDelimiterPrefix   = "random_delimiter_"
)

// 时间长度
const (
	Day     = time.Hour * 24
	Month   = Day * 30
	Year    = time.Hour * 24 * 365
	Century = Year * 100
)

const (
	EntityTypeComment = "comment"
	EntityTypeMoment  = "moment"
)

const (
	ImageSizeLimit = 1024 * 1024 * 5 // 5MB
)
